package com.espirit.eap.manager;

import java.io.Serializable;

import javax.persistence.Entity;

import org.hibernate.annotations.Index;
import org.hibernate.annotations.Table;

import com.espirit.EntityMapping;
import com.googlecode.cswish.model.Saas;

@Entity
@Table( indexes={@Index(name="saas_idx_key", columnNames={"dataKey"} )}, appliesTo = "saas_systemdata")
public class SystemData extends EntityMapping implements Serializable, Saas {

	// page upgrade uses it to check if scanning the plug-in folder 
	public final static String UPGRADE_DATE = "upgradeDate";
	
	// base action uses it to check the count of the user visit
	public final static String VISIT_COUNT = "visitCount";
	public final static String LOGIN_COUNT = "loginCount";
	
	public final static String START_YEAR = "startYear";
	
	// the max valid sequence name
	public final static String MAX_SEQUENCE = "maxSequence";
	
	// company name
	public final static String COMPANY_NAME = "companyName";
	
	// version no
	public final static String VERSION_NO = "versionNo";
	
	// system log
	public final static String ENABLE_SYSTEMLOG = "enableSystemLog";
	
	// force use system layout
	public final static String FORCE_USE_SYSTEMLAYOUT = "forceUserSystemLayout";
		
	
	private static final long serialVersionUID = -7220498721970005811L;

	private String dataKey;
	
	private String dataValue;

	
	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}
	
	public String getDataKey() {
		return dataKey;
	}

	public void setDataKey(String key) {
		this.dataKey = key;
	}

	public String getDataValue() {
		return dataValue;
	}

	public void setDataValue(String value) {
		this.dataValue = value;
	}
	
}
